package com.bee.tlweb.service;

import java.util.ArrayList;
import java.util.List;

import com.bee.tlweb.model.News;

public class NewsService {
	public News getNews(int id){
		List<News> list =  PortalService.list;	
		 for(News n:list){
			 if(n.getNewsId()==id){
				
				return n;
			 }
		 }
		 return null ;
	}
}
